package com.fenda.Dao;

import com.fenda.Util.mybatisUtil;
import com.fenda.pojo.Student;
import org.apache.ibatis.session.SqlSession;

import java.io.IOException;
import java.util.List;

public class UserDaoTest {
    public static void main(String[] args) throws IOException {
        SqlSession sqlSession = mybatisUtil.getSqlSession();
        UserDao mapper = sqlSession.getMapper(UserDao.class);
        List<Student> students = mapper.SelectAll();
        for (Student student : students) {
            System.out.println(student);
        }

    }
}
